package com.xyazm.coupon.domain.dto;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户优惠券信息
 * @author xuyou
 * 2022/5/15 0015 17:16
*/
@Data
public class UserCouponDTO implements Serializable {

    private static final long serialVersionUID = -7948590564195939334L;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "优惠券资源ID")
    private String couponResourceId;

    @ApiModelProperty(value = "优惠券ID")
    private String couponId;

    @ApiModelProperty(value = "优惠券名称")
    private String name;

    @ApiModelProperty(value = "优惠券类型，1：现金券，2：满减券")
    private Integer type;

    @ApiModelProperty(value = "优惠券抵扣金额")
    private Integer amount;

    @ApiModelProperty(value = "优惠券使用限制金额")
    private Integer conditionAmount;

    @ApiModelProperty(value = "有效期开始时间")
    private Date validStartTime;

    @ApiModelProperty(value = "有效期结束时间")
    private Date validEndTime;

    @ApiModelProperty(value = "优惠券状态 0:未使用 1:已使用 2:已作废 3:已过期")
    private Integer couponStatus;
}
